package org.example.lostandfound.dao;

import org.example.lostandfound.model.LostItem;
import org.example.lostandfound.model.LostItemType;

import java.util.List;

public interface LostItemDao {
    //查询所有丢失物品
    List<LostItem> findAllLostItems();
    //通过ID查询丢失物品
    LostItem findLostItemById(Long id);
    //通过丢失物品名称查询丢失物品
    LostItem findLostItemByName(String lostItemName);
    //插入新的丢失物品
    void insertLostItem(LostItem lostItem);
    //更新丢失物品的信息
    void updateLostItem(LostItem lostItem);
    //删除丢失物品
    void deleteLostItem(Long id);
    //查看丢失物品领回状态
    List<LostItem> findLostItemsByFound(boolean found);
    //通过类型查找丢失物品
    List<LostItem> findLostItemsByType(LostItemType type);


}
